import request from '@/utils/request'

// 查询整屋装修列表
export function listDecoration(query) {
  return request({
    url: '/system/decoration/list',
    method: 'get',
    params: query
  })
}
// GET/system/decoration/momentList
// 查看所有精彩瞬间
export function momentList(query) {
  return request({
    url: '/system/decoration/momentList',
    method: 'get',
    params: query
  })
}
// 查询整屋装修详细
export function getDecoration(decorationId) {
  return request({
    url: '/system/decoration/' + decorationId,
    method: 'get'
  })
}

// 新增整屋装修
export function addDecoration(data) {
  return request({
    url: '/system/decoration',
    method: 'post',
    data: data
  })
}

// 修改整屋装修
export function updateDecoration(data) {
  return request({
    url: '/system/decoration',
    method: 'put',
    data: data
  })
}

// 删除整屋装修
export function delDecoration(decorationId) {
  return request({
    url: '/system/decoration/' + decorationId,
    method: 'delete'
  })
}

// export function delDecoration(data) {
//   return request({
//     url: '/system/decoration',
//     method: 'delete',
//     data: data
//   })
// }

// 导出整屋装修
export function exportDecoration(query) {
  return request({
    url: '/system/decoration/export',
    method: 'get',
    params: query
  })
}
